import request from '@/axios'
export const getPlatformConfigPageApi = (params) =>
  request.get({ url: '/api/ai/config/page', params })

export const savePlatformConfigApi = (data) => request.post({ url: '/api/ai/config/save', data })

export const updatePlatformConfigApi = (data) => request.put({ url: '/api/ai/config/update', data })

export const deletePlatformConfigApi = (id: number) =>
  request.delete({ url: `/api/ai/config/delete/${id}` })

export const activatePlatformConfigApi = (id: number) =>
  request.put({ url: `/api/ai/config/activate?id=${id}` })
